package base.response;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/9/13.
 */
public class Select2 {
    boolean incomplete_results=false;
    Long   total_count=0L;
    List<Item> items=new ArrayList<Item>();

    public boolean isIncomplete_results() {
        return incomplete_results;
    }

    public void setIncomplete_results(boolean incomplete_results) {
        this.incomplete_results = incomplete_results;
    }

    public Long getTotal_count() {
        return total_count;
    }

    public void setTotal_count(Long total_count) {
        this.total_count = total_count;
    }

    public List<Item> getItems() {
        return items;
    }

    public void setItems(List<Item> items) {
        this.items = items;
    }



    public void putItem(String id,String name) {
        Item item=new Item();
        item.setId(id);
        item.setText(name);
        items.add(item);
    }
    public void putItem(String id,String name,Object data) {
        Item item=new Item();
        item.setId(id);
        item.setText(name);
        item.setData(data);
        items.add(item);
    }

    public class Item{
        String id;
        String text;
        Object data;

        public Object getData() {
            return data;
        }

        public void setData(Object data) {
            this.data = data;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }
}
